package light.head.dao.sys;

import java.util.List;

import light.head.framework.base.BaseDAO;
import light.head.model.OperationLog;

import org.springframework.stereotype.Service;


@Service
public class OperationLogDAO extends BaseDAO<OperationLog, Integer>{
	
	private final static String sql_list = "FROM OperationLog WHERE oc = ?";
	
	/**
	 * 根据机构编号记载近期操作
	 * @param	机构编号
	 * @param	获取记录总数
	 */
	public List<OperationLog> findNew(Integer oc, Integer limit){
		if (null == oc)
			return null;
		List<OperationLog> list = find(sql_list, 0, limit, oc);
		return list;
	}
}

